﻿using NCS.DeviceManager.Models.Entities;

namespace NCS.DeviceManager.Services.IServices
{
    public interface IBaseService<T> where T : BaseEntity, new()
    {
        Task<T> CreateAsync(T entity);
        Task<T> UpdateAsync(T entity);
        Task DeleteAsync(T entity);
        Task DeleteAsync(int Id);
        Task<T> GetSingleEntity(int Id);
        Task<IEnumerable<T>> GetAllEntities();
    }
}
